package com.bean;

import com.enums.ConsoleFontStyleEnum;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class FontStyleBean {
    private ConsoleFontStyleEnum.Color color;
    private ConsoleFontStyleEnum.Pattern pattern;
    private ConsoleFontStyleEnum.BackGroundColor backGroundColor;
    private List<ConsoleFontStyleEnum.Other> otherStyleList;

    public FontStyleBean() {
        this.color = ConsoleFontStyleEnum.Color.WHITE;
    }

    public FontStyleBean(ConsoleFontStyleEnum.Color color) {
        this.color = color;
    }

    public  FontStyleBean(ConsoleFontStyleEnum.Color fontColor,
                          ConsoleFontStyleEnum.BackGroundColor backGroundColor,
                          ConsoleFontStyleEnum.Pattern fontPattern,
                          ConsoleFontStyleEnum.Other... fontOtherStyle) {
        this.color = fontColor;
        this.pattern = fontPattern;
        this.backGroundColor = backGroundColor;
        this.otherStyleList = new ArrayList<>(Arrays.asList(fontOtherStyle));
    }
}
